package org.example.service.impl;

import org.example.domain.RuoYi;
import org.example.mapper.RuoYiMapper;
import org.example.service.RuoYiService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RuoYiServiceImpl implements RuoYiService {
    @Autowired
    RuoYiMapper ruoYiMapper;

    @Override
    public List<RuoYi> list(RuoYi ruoYi) {
        List<RuoYi> list=ruoYiMapper.list(ruoYi);
        return list;
    }

    @Override
    public boolean updateById(Integer id) {
        boolean b=ruoYiMapper.updateById(id);
        return b;
    }

    @Override
    public boolean update(RuoYi ruoYi) {
        boolean b=ruoYiMapper.update(ruoYi);
        return b;
    }

    @Override
    public boolean add(RuoYi ruoYi) {
        boolean b=ruoYiMapper.add(ruoYi);
        return b;
    }

    @Override
    public List<RuoYi> lists() {
        List<RuoYi> list=ruoYiMapper.lists();
        return list;
    }

    @Override
    public List<RuoYi> nonghuList(RuoYi ruoYi) {
        List<RuoYi> list=ruoYiMapper.nonghuList(ruoYi);
        return list;
    }

    @Override
    public List<RuoYi> listNonghu() {
       List<RuoYi> list= ruoYiMapper.listNonghu();
        return list;
    }

    @Override
    public List<RuoYi> ruoyiList(Integer id) {
        return ruoYiMapper.ruoyiById(id);
    }


}
